package top.csjss.hospital.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * cashier
 * @author 
 */
public class Cashier implements Serializable {
    /**
     * 出纳ID
     */
    private Integer cashierId;

    /**
     * 挂号人id
     */
    private Integer reportId;

    /**
     * 药品/项目名称
     */
    private String drugName;

    /**
     * 药品/项目数量
     */
    private Integer drugNum;

    /**
     * 药品/项目单价
     */
    private Double repicePrice;

    /**
     * 药品/项目总价
     */
    private Double repiceTotal;

    /**
     * 0 - 药品出纳， 1 - 项目出纳 
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date ctime;

    /**
     * 0 - 非检查项目（打针）  1 - 需检查项目（拍片）
     */
    private Integer ostate;

    /**
     * 需要检查项目-诊断结果
     */
    private String jie;

    /**
     * 0 - 未缴费 ，1 - 已缴费
     */
    private Integer mstate;

    private static final long serialVersionUID = 1L;

    public Integer getCashierId() {
        return cashierId;
    }

    public void setCashierId(Integer cashierId) {
        this.cashierId = cashierId;
    }

    public Integer getReportId() {
        return reportId;
    }

    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public Integer getDrugNum() {
        return drugNum;
    }

    public void setDrugNum(Integer drugNum) {
        this.drugNum = drugNum;
    }

    public Double getRepicePrice() {
        return repicePrice;
    }

    public void setRepicePrice(Double repicePrice) {
        this.repicePrice = repicePrice;
    }

    public Double getRepiceTotal() {
        return repiceTotal;
    }

    public void setRepiceTotal(Double repiceTotal) {
        this.repiceTotal = repiceTotal;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getOstate() {
        return ostate;
    }

    public void setOstate(Integer ostate) {
        this.ostate = ostate;
    }

    public String getJie() {
        return jie;
    }

    public void setJie(String jie) {
        this.jie = jie;
    }

    public Integer getMstate() {
        return mstate;
    }

    public void setMstate(Integer mstate) {
        this.mstate = mstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Cashier other = (Cashier) that;
        return (this.getCashierId() == null ? other.getCashierId() == null : this.getCashierId().equals(other.getCashierId()))
            && (this.getReportId() == null ? other.getReportId() == null : this.getReportId().equals(other.getReportId()))
            && (this.getDrugName() == null ? other.getDrugName() == null : this.getDrugName().equals(other.getDrugName()))
            && (this.getDrugNum() == null ? other.getDrugNum() == null : this.getDrugNum().equals(other.getDrugNum()))
            && (this.getRepicePrice() == null ? other.getRepicePrice() == null : this.getRepicePrice().equals(other.getRepicePrice()))
            && (this.getRepiceTotal() == null ? other.getRepiceTotal() == null : this.getRepiceTotal().equals(other.getRepiceTotal()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getOstate() == null ? other.getOstate() == null : this.getOstate().equals(other.getOstate()))
            && (this.getJie() == null ? other.getJie() == null : this.getJie().equals(other.getJie()))
            && (this.getMstate() == null ? other.getMstate() == null : this.getMstate().equals(other.getMstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCashierId() == null) ? 0 : getCashierId().hashCode());
        result = prime * result + ((getReportId() == null) ? 0 : getReportId().hashCode());
        result = prime * result + ((getDrugName() == null) ? 0 : getDrugName().hashCode());
        result = prime * result + ((getDrugNum() == null) ? 0 : getDrugNum().hashCode());
        result = prime * result + ((getRepicePrice() == null) ? 0 : getRepicePrice().hashCode());
        result = prime * result + ((getRepiceTotal() == null) ? 0 : getRepiceTotal().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getOstate() == null) ? 0 : getOstate().hashCode());
        result = prime * result + ((getJie() == null) ? 0 : getJie().hashCode());
        result = prime * result + ((getMstate() == null) ? 0 : getMstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cashierId=").append(cashierId);
        sb.append(", reportId=").append(reportId);
        sb.append(", drugName=").append(drugName);
        sb.append(", drugNum=").append(drugNum);
        sb.append(", repicePrice=").append(repicePrice);
        sb.append(", repiceTotal=").append(repiceTotal);
        sb.append(", state=").append(state);
        sb.append(", ctime=").append(ctime);
        sb.append(", ostate=").append(ostate);
        sb.append(", jie=").append(jie);
        sb.append(", mstate=").append(mstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}